#! /bin/sh

 t0=`date +%s%N`
 for i in `seq 0 100`
 do
  ./m1 <in.txt >out.txt
 done
 t1=`date +%s%N`
 
 d=`expr $t1 - $t0`
 d=`expr $d / 100`
 echo 1 - $d

for j in `seq 3 6`
do
 t0=`date +%s%N`
 for i in `seq 0 100`
 do
  ./m$j <in.txt >out.txt
 done
 t1=`date +%s%N`
 
 d=`expr $t1 - $t0`
 d=`expr $d / 100`
 echo $j - $d
done

#for i in `seq 1 100`
#do
# echo `diff out0.txt out$i.txt`
#done

